import request from "@/utils/request";

// 查询学生表列表
export function listStudent(query) {
  return request({
    url: "/student/list",
    method: "get",
    params: query,
  });
}

// 查询学生表详情
export function getStudent(studentId) {
  return request({
    url: "/student/" + studentId,
    method: "get",
  });
}

// 新增学生表
export function addStudent(data) {
  return request({
    url: "/student",
    method: "post",
    data: data,
  });
}

// 修改学生表
export function updateStudent(data) {
  return request({
    url: "/student",
    method: "put",
    data: data,
  });
}

// 删除学生表
export function deleteStudent(studentId) {
  return request({
    url: "/student/" + studentId,
    method: "delete",
  });
}
